package cn.javase.base.annotation;

import java.lang.reflect.InvocationTargetException;

public class AnnotationTest {
    public static void main(String[] args) throws ClassNotFoundException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException {
        User user = new User();
        AnnotationHandler.handleSchedule(user);
        System.out.println(user);
        for (int i = 0; i < 100; i++) {
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
            System.out.println("main方法执行..." + i);
        }
    }
}
